<?php
	// Trực tuyến - Phần nghiệp vụ
	class onlinebs
	{
		public $sidOnline	= '';
		public $timeOut		= 0;
		
		public function Add()
		{
			$db = new onlinedb();
			return $db->Add($this->sidOnline, $this->timeOut);
		}
		
		public function Count()
		{
			$db = new onlinedb();
			return $db->Count();
		}
		
		public function Update()
		{
			$db = new onlinedb();
			return $db->Update($this->sidOnline, $this->timeOut);
		}
		
		public function Delete()
		{
			$db = new onlinedb();
			return $db->Delete();
		}
		
		public function Check()
		{
			$db = new onlinedb();
			return $db->Check($this->sidOnline);
		}
	}
?>